package edu.fzu.crud.dao;

import edu.fzu.crud.bean.Student;
import edu.fzu.crud.bean.StudentExample;
import java.util.List;

import edu.fzu.crud.bean.vo.StuInfoVo;
import org.apache.ibatis.annotations.Param;

public interface StudentMapper {
    long countByExample(StudentExample example);

    int deleteByExample(StudentExample example);

    int deleteByPrimaryKey(Integer studentId);

    int insert(Student record);

    int insertSelective(Student record);

    int insertSelectiveByStuInoVo(StuInfoVo record);

    List<Student> selectByExample(StudentExample example);

    Student selectByPrimaryKey(Integer studentId);

    int updateByExampleSelective(@Param("record") Student record, @Param("example") StudentExample example);

    int updateByExample(@Param("record") Student record, @Param("example") StudentExample example);

    int updateByPrimaryKeySelective(Student record);

    int updateByPrimaryKey(Student record);

    // 查询学生信息带有学校信息
    List<Student> queryStudentList(StudentExample example);
}